/**
 * Created by Administrator on 2017/4/26 0026.
 */
var DB =  require('../db/db');

/**定位*/
exports.dingwei = function(req,res,msg){
    var sql = "select * from k_shop WHERE enable = 1";
    console.log(sql);
    DB.query(sql,function(er,list){
        if(!er){
            msg.success = true;
            msg.data = list;
            res.json(msg);
        }else{
            msg.msg = er;
            res.json(msg);
        }
    });
};